# frv testcase for mhsethih $s12,$FRk
# mach: all

	.include "../testutils.inc"

	start

	.global mhsethih
mhsethih:
	set_fr_immed	0,fr1
	mhsethih	0,fr1
	test_fr_iimmed	0,fr1
	mhsethih	1,fr1
	test_fr_iimmed	0x08000000,fr1 
	mhsethih	0xf,fr1
	test_fr_iimmed	0x78000000,fr1
	mhsethih	-16,fr1
	test_fr_iimmed	0x80000000,fr1
	mhsethih	-1,fr1
	test_fr_iimmed	0xf8000000,fr1

	pass
